// 用户相关
import request from '../utils/request.js'

// 参赛者列表
const getParticipantInfo = data => {
  return request({
    url: '/api/auth/participant/list',
    method: 'POST',
    data
  })
}

// 添加/修改参赛者资料
const changeParticipantInfo = data => {
  return request({
    url: '/api/auth/participant/post',
    method: 'POST',
    data
  })
}

// 删除用户参与者信息
const delParticipantInfo = data => {
  return request({
    url: '/api/auth/participant/deleted',
    method: 'POST',
    data
  })
}

// 根据组别主键 筛选参赛者资料
const selectParticipantInfo = id => {
  return request({
    url: '/api/auth/participant/list/'+id,
    method: 'POST'
  })
}

module.exports = {
  getParticipantInfo,
  changeParticipantInfo,
  delParticipantInfo,
  selectParticipantInfo
}